<template>
  <el-form
    :model="modelValue"
    label-width="auto"
  >
    <el-form-item
      v-for="column in columns"
      :label="`${column.title}：`"
    >
      {{ modelValue[column.field] }}
    </el-form-item>
  </el-form>
</template>

<script lang="ts" setup>
import AgColumn from '@/bean/vo/AgColumn';

const props = defineProps<{
  columns: AgColumn<any>[];
  modelValue: any;
}>();

</script>
